# -*-coding:utf-8-*-
# ! /usr/bin/python3
import webbrowser, pyperclip, sys

if len(sys.argv) > 1:
    queryContent = " ".join(sys.argv[1:])
else:
    queryContent = pyperclip.paste()
print(queryContent)
webbrowser.open("https://www.baidu.com/s?wd=%s" % queryContent)
